package com.mew.chess.core.game.shbz.game.message;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.*;


@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PlayerExitPushMessage extends ZebraBaseMessage<PlayerExitPushMessage> {

    private int seatNo;

    @Override
    public void write(ByteBuf b) {

        writeInt(b, this.seatNo);
    }

    @Override
    public PlayerExitPushMessage read(ByteBuf b) {
        this.seatNo = readInt(b);
        return this;
    }

}
